package com.work.demo.entity;

import java.io.Serializable;

/**
 * 产品类
 */
public class Product implements Serializable {
    private static final long serialVersionUID = -87098763175422478L;
    //行id
    private int id;
    //产品编号pid
    private String pid;
    //产品名称
    private String name;
    //产品的分类
    private String classify;
    //产品价格
    private Double price;
    //描述图片
    private String img;
    //产品描述与特点
    private String description;
    //产品说明书地址
    private String instruction;

    public void setId(int id) {
        this.id = id;
    }

    public void setInstruction(String instruction) {
        this.instruction = instruction;
    }

    public void setClassify(String classify) {
        this.classify = classify;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getClassify() {
        return classify;
    }

    public int getId() {
        return id;
    }

    public Double getPrice() {
        return price;
    }

    public String getInstruction() {
        return instruction;
    }

    public String getPid() {
        return pid;
    }

    public String getImg() {
        return img;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", pid='" + pid + '\'' +
                ", name='" + name + '\'' +
                ", classify='" + classify + '\'' +
                ", price=" + price +
                ", img='" + img + '\'' +
                ", description='" + description + '\'' +
                ", instruction='" + instruction + '\'' +
                '}';
    }
}
